/**
 * @date 2006-3-29 13:04:35
 *
 */
package org.nanhill.xmlro.srojs;

import org.nanhill.xmlro.sro.model.SroSerializerFactory;

/**
 * @author alin [xalinx at gmail dot com]
 * 
 */
public class SroJavascriptSerializerFactory extends SroSerializerFactory {

	/**
	 * 
	 */
	public SroJavascriptSerializerFactory() {
		init();
		reInit();
		initDispatcher();
	}

	private void reInit() {
		this.objectSerializer = new JavascriptJavaSerializer();
		this.collectionSerializer = new JavascriptCollectionSerializer();
		this.mapSerializer = new JavascriptMapSerializer();
		this.booleanArraySerializer = new JavascriptBooleanArraySerializer();
		this.shortArraySerializer = new JavascriptShortArraySerializer();
		this.integerArraySerializer = new JavascriptIntegerArraySerializer();
		this.longArraySerializer = new JavascriptLongArraySerializer();
		this.floatArraySerializer = new JavascriptFloatArraySerializer();
		this.doubleArraySerializer = new JavascriptDoubleArraySerializer();
		this.characterArraySerializer = new JavascriptCharacterArraySerializer();
		this.stringArraySerializer = new JavascriptStringArraySerializer();
		this.objectArraySerializer = new JavascriptObjectArraySerializer();
	}

}
